package com.ruoyi.merchant.domain;

import java.math.BigDecimal;
import java.util.Date;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 商品对象 goods
 * 
 * @author jktam
 * @date 2025-11-03
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@JsonIgnoreProperties({"createBy", "updateBy", "remark"})
public class Goods extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long goodsId;

    /** 商户id */
    @Excel(name = "商户id")
    private Long shopId;

    /** 商户名称 */
    @Excel(name = "商户名称")
    private String shopName;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 分类名称 */
    @Excel(name = "分类名称")
    private String categoryName;

    /** 商品名 */
    @Excel(name = "商品名")
    private String goodsName;

    /** 商品介绍 */
    @Excel(name = "商品介绍")
    private String goodsDesc;

    /** 商品售价（单位：元） */
    @Excel(name = "商品售价", readConverterExp = "单=位：元")
    private BigDecimal price;

    /** 原价（单位：元） */
    @Excel(name = "原价", readConverterExp = "单=位：元")
    private BigDecimal originalPrice;

    /** 库存 */
    @Excel(name = "库存")
    private Long stock;

    /** 商品主图 */
    @Excel(name = "商品主图")
    private String coverImage;

    /** 销量 */
    @Excel(name = "销量")
    private Long salesCount;
}
